home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / imscale.zip / SCALE.H < prev   
Text File  |  1993-05-11  |  800b  |  34 lines

  1. /**********************************************************************
  2. **
  3. ** SCALE.H
  4. **
  5. ** Small program that shows how to scale when the source and
  6. ** destination are both under 64K
  7. **
  8. **********************************************************************/
  9.  
  10. //start of VGA memory
  11. #define VgaMem ((unsigned char *)0xA0000000)
  12.  
  13. //for writing palette
  14. #define VgaStartColor 0x03c8
  15. #define VgaPort 0x03c9
  16.  
  17. //for bounding areas
  18. typedef struct
  19. {
  20.    int Sx, Sy, Ex, Ey;
  21. }Rect;
  22.  
  23. typedef Rect * pRect;
  24.  
  25. //functions
  26. void SetVideoMode(int Mode);
  27. void LoadJohn(void);
  28. void GetImage(pRect r, unsigned char * Buffer);
  29. void PutImage(pRect r, unsigned char * Buffer);
  30. void PalGrayScale(void);
  31. void Scale(pRect Source, pRect Dest);
  32. unsigned int ImageSize(pRect r);
  33. int GetKey(void);
  34.